package com.qumitech.visualnovel.component.util;

/**
 * @Auther: jlyin
 * @Date: 2018/9/10 10:42
 * @Description:
 */
public class StringToIntUtil {
    //将字符串转换成int数组
    public static int[] changeToInt(String a, String split) {
        String[] b = a.split(split);
        int[] c = new int[b.length];
        for (int i = 0; i < b.length; i++) {
            c[i] = Integer.parseInt(b[i]);
        }
        return c;
    }
}
